<template v-if="itemCount">
  <!-- 功能块 -->
  <div>
    <div class="fun_item" v-for="(item) in itemCount" :key="item._id" @click="itemClick(item.link_path)">
    <van-row>
      <van-col span="2" offset="1">
        <div class="icon_div">
          <img :src="getImgPath + item.icon_path">
        </div>
      </van-col>
      <van-col span="10">
        <span>{{item.desc}}</span>
      </van-col>
      <van-col span="10" class="right">
        <span>{{item.right_desc}}</span>
      </van-col>
      <van-col span="2">
        <span class="iconfont icon-iconfontjiantou5"></span>
      </van-col>
    </van-row>
  </div>
  </div>
</template>
<script>
import {mapGetters} from "vuex";
export default {
  name:"FunItem",
  props:["itemCount"],
  data() {
    return {
      
    }
  },
  methods: {
    itemClick(link_url){
      if(!link_url) return;
      this.$router.push(link_url);
    }
  },
  computed: {
    ...mapGetters("ImgPath",{
      getImgPath:"getImgPath"
    })
  },
}
</script>
<style lang="less" scoped>
  .fun_item{
    font-size: 0.14rem;
    background-color: #ffffff;
    height: 0.3rem;
    padding: 0.1rem 0rem;
  }
  .icon_div{
    width: 0.2rem;
    height: 0.2rem;
    overflow: hidden;
    img{
      width: 100%;
    }
  }
  .van-row{
    height: 100%;
    display: flex;
    align-items: center;
  }
  .right{
    text-align: right;
    margin-right: 0.05rem;
    color: #888888;
  }
</style>


